﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SiGeSIB.Data.Finances;
using SiGeSIB.Business.Impl.Providers;
using SiGeSIB.Data;

namespace SiGeSIB.Services.Impll.Providers
{
	public class FinancesServices : IFinancesServicesProvider
	{
		public FinancesServices()
		{
			_Controller = new FinancesController();
		}

		private FinancesController _Controller;

		public int InsertMovimentation(Movimentation movimentation)
		{
			return _Controller.InsertMovimentation(movimentation);
		}

		public void UpdateMovimentation(Movimentation movimentation)
		{
			_Controller.UpdateMovimentation(movimentation);
		}
		public void RemoveMovimentation(int id)
		{
			_Controller.RemoveMovimentation(id);
		}

		public int InsertCostCenter(CostCenter center)
		{
			return _Controller.InsertCostCenter(center);
		}
		public void UpdateCostCenter(CostCenter center)
		{
			_Controller.UpdateCostCenter(center);
		}
		public void RemoveCostCenter(int id)
		{
			_Controller.RemoveCostCenter(id);
		}

		public CostCenter GetCostCenter(int id, CostCenterInfo info)
		{
			return _Controller.GetCostCenter(id, info);
		}
		public List<CostCenter> GetCostCenters(CostCenterInfo info)
		{
			return _Controller.GetCostCenters(info);
		}
		public List<CostCenter> GetCostCenters(int[] ids, CostCenterInfo info)
		{
			return _Controller.GetCostCenters(ids, info);
		}

		public Movimentation GetMovimentation(int id)
		{
			return _Controller.GetMovimentation(id);
		}
		public List<Movimentation> GetMovimentations(MovimentationFilter filter, MovimentationInfo info)
		{
			return _Controller.GetMovimentations(filter, info);
		}
	}
}
